﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_Model.SMS
{
    public  class SendResultStateParent
    {
        /// <summary>
        /// 状态；Success成功
        /// </summary>
        public string ReturnStatus { get; set; }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public string RemainPoint { get; set; }
        /// <summary>
        /// 序列ID
        /// </summary>
        public string TaskID { get; set; }
        /// <summary>
        ///  成功短信数
        /// </summary>
        public int SuccessCounts { get; set; }

        /// <summary>
        /// 是否成功
        /// </summary>
        /// <returns></returns>
        public string isSuccess()
        {
            if ("Success".Equals(ReturnStatus))
                return "10";
            return "20";
        }
    }
}